package org.budo.activiti.behavior;

import org.activiti.bpmn.model.ExclusiveGateway;
import org.activiti.bpmn.model.UserTask;
import org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior;
import org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior;
import org.activiti.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory;

/**
 * @author lmw
 */
public class BudoActivityBehaviorFactory extends DefaultActivityBehaviorFactory {
    @Override
    public ExclusiveGatewayActivityBehavior createExclusiveGatewayActivityBehavior(ExclusiveGateway exclusiveGateway) {
        return new BudoExclusiveGatewayActivityBehavior();
    }

    @Override
    public UserTaskActivityBehavior createUserTaskActivityBehavior(UserTask userTask) {
        return new BudoUserTaskActivityBehavior(userTask);
    }
}